package com.nkym.config;/*
 * @ClassName LapiClientAutoConfiguration
 * @Desc TODO
 * @Author 19637
 * @Date 2023/4/20 15:38
 * @Version 1.0
 */

import com.nkym.client.LApiClient;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties(prefix = "lapi.config")
public class LApiClientAutoConfiguration {

    private String accessKey;
    private String secretKey;

    public String getAccessKey() {
        return accessKey;
    }

    public void setAccessKey(String accessKey) {
        this.accessKey = accessKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    public void setSecretKey(String secretKey) {
        this.secretKey = secretKey;
    }

    @Bean
    public LApiClient getLApiClient() {
        return new LApiClient(accessKey,secretKey);
    }


}
